﻿@model Contract.Business.Entity.BEConsulta

@{
    ViewBag.Title = "Agendar Consulta";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Agendar Nova Consulta</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Consulta</h4>
        <hr />
        @Html.ValidationSummary(true)

        <div class="form-group">
            @Html.LabelFor(model => model.NomeCliente, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.NomeCliente)
                @Html.ValidationMessageFor(model => model.NomeCliente)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.DataHora, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.DataHora)
                @Html.ValidationMessageFor(model => model.DataHora)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Duracao, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Duracao)
                @Html.ValidationMessageFor(model => model.Duracao)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Agendar" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Cancelar", "Listar")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
